cut spaces after functions