Space filtering

When filtering frame names, also replace consecutive ' ', '_' and
'-' with a single space. This also simplifies the bracket patterns
somewhat.