Improved title parsing