set a char limit