strip non-digits from branch