if("scale" in var_type): #if the substring scale is contained in var_type                                                                              
    
    
str = "this is string example....wow!!! this is really string"
print str.replace("is", "was")
print str.replace("is", "was", 3)
