better way to do string.equals() with literals