0
Apple cobra Posted 8 years ago
Grammar

In which or where

Hi everyone,

I'm not native speaker, but I have some knowledge of the language.

I need some help with the following programming-related sentence:

Whitespace can be removed from strings with _.trim(string, chars), where string represents the string in which the whitespace will be removed and chars the characters that will be removed.

Questions:

  1. I'm using "whitespace" as an uncountable noun. Could I've use white spaces as countable nouns?
  2. I used “removed with” in my sentence. Is that correct for “tools”?
  3. Could I’ve use “by using” instead of “removed with”?
  4. Is it ok that I wrote the a single sentence instead of splitting it in two? It seems kind of long.
  5. I wrote “the string in which”, is that correct?
  6. Could I’ve used “the string where the white space will be removed” or something else?
  7. If I wrote "where/in which the white space will be removed from”, would the use of from be incorrect?
  8. Are there any other mistakes or wrong use of words I should be aware of?
  

Top answer

" You can say "with" or "using". I'm not tremendously keen on "by using". "whitespace" is OK as one word.

  • " You can say "with" or "using".
  • I'm not tremendously keen on "by using".
  • "whitespace" is OK as one word.
  • I see no reason to italicise it.
  • It does not seem logical to italicise "trim" since it is not a replaceable item.
Free · every Monday

Get the Weekly English Kit 📬

New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.

1 Answers
0

"Whitespace can be removed from strings with _.trim(string, chars), where string is the string from which the whitespace will be removed and chars the characters that will be removed."

You can say "with" or "using". I'm not tremendously keen on "by using".

"whitespace" is OK as one word. I see no reason to italicise it.

It does not seem logi

Related Questions