added anonymous functions for PHP 5.4 compatibility
upper to lower with umlauts