fixing string maxlength