updated to allow for lowercase input