fixed bug in string representation of Transaction class

hi, this is just a minor bugfix