Fix string handling when field has a character limit