Updated to return false if either of entered strings are not found.