StringUtils: Replaced length with simple boolean check