fixed user request for a page ending with a space