Does this not need a space in front of the 'flag-' as well?
`' flag-' + ...`