along with their two other best friends , spencer hastings and emily fields , they had just endured months of being stalked and tormented by an evil text-messager called a , who was the real alison dilaurentis-the ali they had known was actually ali 's twin , courtney .