put duplicate str to variable