Проверьте на наличие алфавитной строки в JavaScript

function isAlphaOrParen(str) {
  return /^[a-zA-Z()]+$/.test(str);
}
Homeless Hoopoe