Fixed getting/setting string properties.

Removed an unused import and an unused argument.