Add spaces: Melatoninhasbeenusedforsleepdisorders(e.g.,insomniaandjetlag).
Melatonin has been used for sleep disorders (e.g., insomnia and jet lag).