Fix bugs for string assignment support