failed to assign string to var