Changed URL regexp to stop matching after space