in reply to capitalization question

i use a lot of
$foo = ucfirst lc $foo;
this takes care of cases where there are stray uppercase letters, or the original word is all uppercase to begin with