Regex unnecessary in slash stripping etc. - also commenting

The regex anyway breaks on unsual chars (like parentheses) in URLs

Also some tiny cleanup/optimization