Replace all occurrences of a string beginning with "$1" followed by any combination of lowercase letters and numbers with the same string, but with the first letter of the string capitalized and the rest of the string in lowercase.
`sed -i -e 's/"$1\([a-z0-9]*\)"/\U$1\L\1/g'`