Created an alpha function that deals with integer and single character input