added new function to check if a number or aplhabetic