replacing Brackets only once in outputFeatureNames
(cherry picked from commit 3ac286e)