simplified process of getting the prefix String