NMLedit function

added lines to check if stringr package is installed