fix problem with result collection caused by inconsistency between java strings and groovy strings