String casing utilities in JavaScript