fixes bug regarding white spaces