how to use string methods