string operation in iOS