string_type and unused imports removed.