Generic validation. First one on String.
Tests updated.