Use a parameterized query:
const string query =
"SELECT Value"
+ "FROM Types"
+ "WHERE Value = @SomeValue";
using(var command = connection.CreateCommand())
{
command.CommandText = query;
command.Parameters.AddWithValue("@SomeValue", strSomeValue[0]);
// TODO: open connection, execute command, get result
}