strip the trailing spaces in branch name