Removed whitespace from tab separated values
Added check for nil values.
Added tests