removed trim string private method