Bosonic strings in background fields