Trim elements in sequence options

as discussed in https://developer.jboss.org/message/913981