What is the fastest way to compare two strings containing only numbers.

eg:

"3423492349328492343.939842903482304"
"349832498234932.92384924893294343"

There can be at max 20 numbers before and after the decimal place. The majority will be around 20, however there can be less.