fix space detection
v0.2.0

- improves matching
- adds match groups
- adds tests