Just put that stuff at the end of your file and all you need to do is use the functions. You don't really need to know anything. So the fact that it is "too long" means nothing. Just use the functions: ReplaceLineByNumber() and ReplaceLineByString().