Cut branch name into pieces