with the String reversal and space removel done