moved "valid" and "invalid" methods from class CollectionUtils to class
StringUtils and improved dependent classes