Updates common string algorithm