added trim functionality in formatting support to make sure only spaces ...

...are treated as null in inputs