Adding tostruct, list and string methods