title: StrReplace function in AX
body: <p>How would one go about remove carriage line returns read on the last element of container in X++?</p>
  
  <p>When I created another variable for the length, the string is 9, rather than 8 since it included the CRLF.</p>
  
  <p>I have tried using <code>strreplace([container element], '\n', '')</code> since <code>'\n'</code> is the file <code>inRecordDelimiter</code>, but this seems to work.</p>
  
  <p>Any ideas?</p>