problem with $encoding in mb_strtolower($inString);

resolve for second problem in  #7