[IMP] Replaced strip and split by a regex

Replaced strip and split by a regex to check the wkthmltopdf version
number.