Text this: Hierarchical Node Replication Attacks Detection in Wireless Sensor Networks