added option to not lower input strings fixing bug with dir_output