Think the StringUtils class will cover this condition