Added several methods that test for null, empty or whitespace and optionally return the original value