Fixed pipe character so that terminating pipe character is added to list.