I think a normal word processor would do fine... just do a find and replace on the source files. Say there was $varname, $VarName, $VARNAME, $VaRnAme, $VaRNAMe. You could open them in any decent word processor, do a find and replace with the search string "$varname", and the replace string the same. It should then find all occurrences, regardless of case, and replace them with the lowercase version. Actually, that might work with PHP's own find and replace function, if you want it to be automated, but I only tried it in Word.