fixing issue #456

...laceFirst/countOccurences