check if variable is string or not python