*ktsolve.R(ktsolve): rev. 1.1 - modified the regex expressions to ensure proper substitution of named variables
