added ltrim method for Greeter class