Re-indent and simplify isGetText() and isGetString()