Added docstrings
Changed input to convert to lowercase