Remove bash command from solution string