crashing on string assignment