Bug fix for if the input string is null or whitespace in Transform() method.
Added a few comments