Forgot to include string dtypes in the optimization