in reply to lower case

simply: lc $var; To put it in the same var: $var = lc $var;