Compare branch display_name string using equals

In #270 it was discussed about one case where `==` is used to compare strings. There's another case in `src/tree.Branch.java`. Not sure if this one is correct as it too but it looks wrong to me.