removing extra spaces before WikiPage