Constant case a string in JavaScript