helper for strings, with test