in reply to Check if a variable contains only one letter?

Use anchors: /^X+$/