Make the end slash optional