startsWith function replaced by native strings.HasPrefix