結果 : get common prefix of two strings in python