trailing space and bug due to extra character