checkNotNull and checkValidity for strings introduced