Change trim character from only LF to PHP default
Fix the bug of failed to call instance method