Add hook to cleanup whitespace before saving