add string support for set_direct_sampling()