fix string insertion