Respect special chars and check inner groups