regex pull request from 26media for spaces mistake