@vemv The standard answer is that Spec isn't designed for parsing strings 🙂
Maybe Instaparse?
I don't want to parse them (e.g. do sth useful with them) - just validate them