right ok I will have a look at that and try to get it working. Could I possibly use the 'trim' unction in this instance?