commit 15 : written all test cases for string and written edge cases