Insert text through conditions is not working.