merge middleware string registration