Getting error while using string methods...plz help me


Getting error while using string methods…plz help me…