Allow spaces in the keys regex

A fix for issue #3 found by @CNG