Added case style; added variable max length