Check for trailing slash when adding path suffix to prevent path with : "//something..."