added option for lower and upper case