added swap api for string class
Merge pull request #301 from Mageswaran1989/swap_api_string_class

added swap api for string class