Php class to work with strings.