 find common prefix 
