using stringutils from apache.commons.lang