Cleaned up modify_headline function