I am validating a city field and I would like to accept spaces between words, for example "San Francisco". Right now I only can validate cities of a single word.
How could I improve my code?
public static boolean verifyCity (Context context, String _string) {
Pattern pattern_ = Pattern.compile("[a-zA-Z]+[\\s]+");
Matcher matcher = pattern_.matcher(_string);
boolean matchFound = matcher.matches();
if (matchFound) return true;
else return false;
}