ignore trailing slash if not on the string
skels for oauth2
add tests to verify optional trailing slash