Remove trailing space from db string.