bugfix for 10472

and some whitespace to follow code guidelines

unified lastIndexOf(string,dchar)

bugfix for 10472

and some whitespace to follow code guidelines

whitespace again

git is good, Im with stupid

forgot one to!dchar