Added regex anchors to IP check