fix string assignment