modified methods for strings
modified tests