Added additional parameter to be able to specify whether empty tokens should be dropped
Generic parameters