Javascript String Includes Substring Python Example Class