Return part of a string