this should be "replacedBlock = blockContent.replace"....etc. anyway I am going to upload the fix plus tests