takeIfValid

Takes this string only if it isValid

See also