Improved text handling for patient list