How can I extract the first 6 characters of a string?

e.g.
str1 = "abcdefghijklmnopqrstu"

=>str2 = "abcdef"