Fix string splitting on regex when both :trim and other options are present