Replacing print-method by toString

Signed-off-by: Daniel Borchmann <daniel.borchmann@mailbox.tu-dresden.de>