fix string problem in sample