Microsoft's documentation says whitespace is okay in the integer string, but I'm not sure if that includes newline.
http://msdn.microsoft.com/en-us/library/f56zcx39(v=vs.90).aspx
It's safest to use String.Trim() before parsing the integer.
cur = cur.Trim();