<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def variable_type(self, variable):
 """Get the Type from the variable string or default to String type. The default type is "String" for those cases when the input variable is contains not "DB variable" and is just a String. **Example Variable**:: #App:1234:output!StringArray returns **StringArray** **Example String**:: "My Data" returns **String** Args: variable (string):
 The variable to be parsed Returns: (string):
 The variable type. """

        var_type = 'String'
        if variable is not None:
            variable = variable.strip()
            # self.tcex.log.info(u'Variable {}'.format(variable))
            if re.match(self._variable_match, variable):
                var_type = re.search(self._variable_parse, variable).group(4)
        return var_type