getting characters to switch