how to write str.isnumeric