updated handling titles ending with special characters