Added String length validation methods. Slight optimisation of comparisons.