folded multiline validator into one line