methods of a string