Trim EOF of element vlaue