Bug fix for string assignment