Modifications of string as per requirement