string detection fix in parts