Refactor with_commas method to work with negative numbers