remove trailing forward slash