Changed reference to use updated function

The replace newlines function was moved to misc_functions