Help with some code

So im trying to make a datapack that adds a brocaster so when it gets power it will send in chat what the sign is reading and it wont work it keeps just infinitly printing [sign line 2] and it has X power
Continue to help post