Truncate branch name