Fix issue with setValue not taking into account the format when passing in a string