Make Chop and StripTrailingNewline take max_length parameters

Removes reliance on evaluation constants