add handling for broken strings