I think there is a built in function that can solve those tasks: Case conversion Normal
Command: $caps(string,...)
Example: $caps(%artist% - %album% - %track% - %title%)
This example converts the given string to normal case. The second parameter is optional and specifies additional characters that triggers upper case.
artist - ALBUM - 01 tItle converts to Artist - Album - 01 Title