how to check if string contains digits