add stringContains algorithm