Now removes spaces after  environment.