Emulation if php string functions are moved to separate module
Created tests for php sting functions
Added processing of "line-end" case