added space and | cases to switch statement for 007/00=v and added tests