Correction of a bug

Since i convert double numbers to string they tend to get a .0 if they
dont have decimals, this reg exp function solves this by if the program
finds this patter they will replace it inmediatly