v2.1.13: Improve dropdown title formatting
Added a "formatSelectedText" function to handle formatting of selected text, making it easier to maintain and customize. This change enhances the readability and usability of the code by centralizing text formatting logic.