Add surrounding spaces to printBranch