be ready for null strings