Properly cut out hash tag from Framework.getQuery