finished formating input string