fixing formatting
takes a string parameter and returns a number