StringUtils: throw InvalidArgumentException and move into libs/