Trailing spaces from the binary search tree removed