Fix possible error when value is not a string (because it's user input)