Set input maxlength to 255 wherever necessary, to prevent input being truncated