Get the 1st three characters out of a text field?

Get the 1st three characters out of a text field?

Hi,

Please advise the code of how to get the first 3 characters out of a text field's value.

Thanks.