fix toString method should always return a string

comment fix + code fix