Database system for strings