strip before assigning value