* fixed escaping/quoting
* fixed pattern
* fixed code to fit codingstyle PSR-2
* added tests