Convert input into strings to make it more robust