Added string_type to simplify extract method.