Aspects of string phenomenology in particle physics and cosmology