Add helper to detect length one string terms (#2654)