ensure sampler source string is cleared before parsing