string operation exercise