Convert a non-constant-case string to a constant-case string.