Add check is path is whitespace
Remove previous fix, and move it to IsReservedPathOrUrl
Add trim to all urls