Code related to string method