started to fix the string extraction