Removing duplicated spaces before branch name