Use pattern match to support stats with spaces in the name. Fixes #10