add string method invocation, but still buggy