[WCFCoreBundle] Improved StringUtil tests and API

* Increased coverage for some methods
* Added test for getHash
* Allowed strings as parameter for formatNumeric (must contain a number only)