fix trim method for eancode