Trim environment name on save if editor #3