deleted all spaces from the end of string