accepts upper or lowercase input