bugfix for 10472

and some whitespace to follow code guidelines

unified lastIndexOf(string,dchar)

bugfix for 10472

and some whitespace to follow code guidelines