capitalize and trim shims