Remove unnecessary getText() calls