Fix a typo
Add a test for shard spaces regex