It simply converts a string to a number and the number back to the string.

int a = stridx("EUR/USD"), b = stridx("USD/JPY");
printf("%i %i %s %s",a,b,strxid(a),strxid(b));