It seems like there is no standard way to spell these kinds of names. Well, depending on the country and language, there may be one or more standard conventions. Unfortunately, frequently there are different conventions available. Unfortunately, one size definitely does not fit all when it comes to names. And Arabic names often have no true surname at all, instead consisting of the individual's given name, followed by his father's given name, grandfather's given name, and so on.
Personal names are a highly distinctive and unique aspect of many cultures.
It should come as little surprise that names often fit poorly into computerized information systems, many of which bear a heavy influence from the English-speaking culture and its associated writing system based on the roman alphabet. Unfortunately, relatively few modern computerized systems are equipped to handle this problem, relying instead on more controllable and easily searchable types of data to identify a person. It shares much of its scholarly content with the more general field of artificial intelligence. Search engines on the Web often require exact matches of character strings. These techniques were originally developed for use with general vocabulary items, and are much less effective for use with names.