refactored the function to be in line with my caesar cipher