[Komodo/Scintilla] Replace just the word instead of the whole line

Fixes #18.
Removed unused variables