solve string-mingling