normalise string comparisons with trailing slash
normalise string comparisons with trailing slash