don't string replace and trim form field default when default value is not a string. #2417

3.0 patch for 9817f83