Allow trailing spaces in quote lookup