updated k-string Solution