input length char acceptance on the client side