translating ruby string to objective-c :p