Update code to use existing functions for Branch string