changing function name isSubStr to is_substr