trim string types.