Fixed number format to invariant. Changed pattern instead of the return value.