Coerce input into a string