Use [ and ] instead of < and > and don't use /] use [/ i.e,... [ b ] ... [/ b ]
And why don't you use $str(...) instead of making the script so...big?