minor change to use the trimmed string