The core of angular-format library. Pure javascript method used to formatting string and unit tests.