Force value to be string in setValue

If you pass in an integer (possibly other types), the setValue does not work.