Fix trailing -, # or /