Check for contains correctly