Calculator removes commas from string to prevent function from returning NAN