Text this: Power quality analysis and mitigation