fix __str__ method of Factor Class fixes #109