dm: core: Add a way to obtain a string list