Added .trim() to getText()