Adding similarity code for strings