WSSQL-30 only replace WILCARD once

Signed-off-by: rpastrana <rodrigo.pastrana@lexisnexis.com>