Whats the best way to go about filtering out text from a String (1 line)

For example, I need to grab "CP6111DYSXB759" from the following line (There are always 4 spaces at the beginning of the line, but the text after is varys in length). Im thinking maybe the Trim function, and I know how to remove the starting spaces, it's the crap at the end I'm not sure of.
CP6111DYSXB759 <00> UNIQUE Registered