Trim branch name