Bug Fixes
Added some extra validation to account number, generally it's ok to trim the fields but you wouldn't want to just trim someone's account number
Fixed offsetUnset trying to unset  what isn't set
Set the date field to %06d
Amended documentation of set lodgement reference with observations
Removed excessive tabbiness
str_replace is the functions real name