Convert a string to a constant case.