added library(stringr) to ui.R
added integral example