Strip whitespace when dynamically setting fields
Don't shadow outer variables