Use a tidier method for trimming ' from strings