Text this: Optimisation of EDM Process for Water Purification