Work with string function, ajax and XML