Replaced own stringutils by a selective part of Apache Commons Lang