Made sure all letters are stripped out of function input