T3Path: Update cleaPath function