Deleted ! on IF condition to work as expected with default values

If start or/and end wildcats are TRUE (like default values) concatenate corresponding chars to create regex string.