susbtring questions

Say I want to do a substring starting from 0 to the last index of the string - a new line, how can I do that?
[116 byte] By [aditya15417a] at [2007-11-26 22:48:50]
# 1
Find the position of the newline and use http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html#substring(int,%20int)
Simeona at 2007-7-10 12:08:53 > top of Java-index,Java Essentials,Java Programming...
# 2
Why not just clone the String?
TuringPesta at 2007-7-10 12:08:53 > top of Java-index,Java Essentials,Java Programming...