check if the string str contains only letters or spaces or periods
str
bool isName(String str) => _name.hasMatch(str);