check if string is number or not python