Making commandPattern tolerant to multiple spaces between : and command