works with upper or lowercase input now