Moved string length check to the getters.