Text this: An iterative approach to a constrained least squares problem