formatParse now explicitly takes an input string